package org.jeecg.modules.inspect.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 异常历史追溯
 * @Author: jeecg-boot
 * @Date:   2024-03-16
 * @Version: V1.0
 */
@Data
@TableName("ins_classes_unusual_msg_course")
@ApiModel(value="ins_classes_unusual_msg_course对象", description="异常历史追溯")
public class InsClassesUnusualMsgCourse implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**异常表主键*/
    @ApiModelProperty(value = "异常表主键")
    private String unusualId;
	/**发起人*/
	@Excel(name = "发起人", width = 15)
    @ApiModelProperty(value = "发起人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String unusualInitiatorId;
    @TableField(exist = false)
    private String unusualInitiator_dictText;
	/**当前责任人*/
	@Excel(name = "当前责任人", width = 15)
    @ApiModelProperty(value = "当前责任人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String unusualRecipientId;
    @TableField(exist = false)
    private String unusualRecipient_dictText;
	/**状态0暂停；1处理中；2已解决*/
	@Excel(name = "状态", width = 15, dicCode = "unusual_status")
    @Dict(dicCode = "unusual_status")
    @ApiModelProperty(value = "状态")
    private String status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
